package router

import (
	"ordersystem/controller"

	"github.com/gofiber/fiber/v2"
)

func SetDeviceRouter(deviceRouter *fiber.Router) {
	routerForDevice := (*deviceRouter).Group("/device")
	routerForDevice.Post("/queryNumber", controller.DeviceQueryNumberController)
	routerForDevice.Post("/queryDevice", controller.DeviceQueryDeviceController)
	routerForDevice.Post("/queryDevices", controller.DeviceQueryDevicesController)
	routerForDevice.Post("/delete", controller.DeviceDeleteDeviceController)
	routerForDevice.Post("/create", controller.DeviceCreateDeviceController)
	routerForDevice.Post("/update", controller.DeviceUpdateDeviceController)
}
